global thefilelist, theeditlist, theviewlist, theschedlist
global thetranslist, theprintlist, thewindowlist
global offset
if bg field "Viewer" is in "Guarantor Spouse" then
--file menu
put "New Family/N;(-;Open Family/O;Open Walk-In/W;Open Default Family;Close/L;Close All/A;(-;Inactive;Delete Family;(-;Preferences...;(-;Password...;(-;Repair...;(-;Transfer...;Quit/Q " into thefilelist
--edit menu
put "Undo/Z;(-;Cut/X;Copy/C;Paste/V;Clear/B;(-;(Show Next Selection;(Show Previous Selection;(-;(Select Inactive Families;(Show Ties" into theeditlist
--view menu
put "(Proc. Codes...;(Producer...;(-;(All/0;(Terry Smith/1;(Sally Smith/2;(Tim Smith/3" into theviewlist
--shedule menu
if offset=0 then
put "(Look-up Fees.../F;(-;Standard" into theschedlist
else
put "Look-up Fees.../F;(-;Standard" into theschedlist
end if
--transaction menu
put "(Cash Payment/H;(Check Payment/K;(Credit Card Payment/D;(Insurance Payment/I;(User Defined Payments 1-4;(-;(Adjustment[+];(Adjustment[-];(Uncollectible Write-Off;(-;(Work Completed;(-;(“Thank You” Sent" into thetranslist
-- print menu
put "(Insurance Form;(Insurance Tracer;(-;(Statement;(Treatment Plan;(-;(Family Summary;(Complete Family;(All Transaction;(-;(Mail Labels;(Chart Labels;General Label;(-;Page Setup..." into theprintlist
else if bg field "Viewer" is in "Patient Chart" then
--file menu
put "New Patient/N;(-;Open Family/O;Open Walk-In/W;Open Default Family;Close/L;Close All/A;(-;Inactive;Delete Patient;(-;Preferences...;(-;Password...;(-;Repair...;(-;Transfer...;Quit/Q " into thefilelist
--edit menu
put "Undo/Z;(-;Cut/X;Copy/C;Paste/V;Clear/B;(-;(Show Next Selection;(Show Previous Selection;(-;(Select Inactive Families;(Show Ties" into theeditlist
--view menu
put "(Proc. Codes...;(Producer...;(-;(All/0;Terry Smith/1;Sally Smith/2;Tim Smith/3" into theviewlist
--shedule menu
if offset=0 then
put "(Look-up Fees.../F;(-;Standard" into theschedlist
else
put "Look-up Fees.../F;(-;Standard" into theschedlist
end if
--transaction menu
put "(Cash Payment/H;(Check Payment/K;(Credit Card Payment/D;(Insurance Payment/I;(User Defined Payments 1-4;(-;(Adjustment[+];(Adjustment[-];(Uncollectible Write-Off;(-;(Work Completed;(-;(“Thank You” Sent" into thetranslist
-- print menu
put "(Insurance Form;(Insurance Tracer;(-;(Statement;(Treatment Plan;(-;(Family Summary;(Complete Family;(All Transaction;(-;(Mail Labels;Chart Labels;General Label;(-;Page Setup..." into theprintlist
else if bg field "Viewer" is "Ledger" then
--file menu
put "New Transaction/N;(-;Open Transaction/O;Open Walk-In/W;Open Default Family;Close/L;Close All/A;(-;Inactive;Delete;(-;Preferences...;(-;Password...;(-;Repair...;(-;Transfer...;Quit/Q " into thefilelist
--edit menu
put "Undo/Z;(-;Cut/X;Copy/C;Paste/V;Clear/B;(-;(Show Next Selection;(Show Previous Selection;(-;(Select Inactive Families;(Show Ties" into theeditlist
--view menu
put "(Proc. Codes...;(Producer...;(-;(All/0;(Terry Smith/1;(Sally Smith/2;(Tim Smith/3" into theviewlist
--shedule menu
if offset=0 then
put "(Look-up Fees.../F;(-;Standard" into theschedlist
else
put "Look-up Fees.../F;(-;Standard" into theschedlist
end if
--transaction menu
put "Cash Payment/H;Check Payment/K;Credit Card Payment/D;Insurance Payment/I;User Defined Payments 1-4;(-;Adjustment[+];Adjustment[-];Uncollectible Write-Off;(-;Work Completed;(-;“Thank You” Sent" into thetranslist
-- print menu
put "Insurance Form;Insurance Tracer;(-;Statement;Treatment Plan;(-;Family Summary;Complete Family;All Transaction;(-;Mail Labels;Chart Labels;General Label;(-;Page Setup..." into theprintlist
else if bg field "Viewer" is "Blank MainApp" then
--file menu
put "New Family/N;(-;Open Family/O;Open Walk-In/W;Open Default Family;(Close/L;(Close All/A;(-;(Inactive;(Delete Family;(-;Preferences...;(-;Password...;(-;Repair...;(-;Transfer...;Quit/Q " into thefilelist
--edit menu
put "Undo/Z;(-;Cut/X;Copy/C;Paste/V;Clear/B;(-;(Show Next Selection;(Show Previous Selection;(-;(Select Inactive Families;(Show Ties" into theeditlist
--view menu
put "(Proc. Codes...;(Producer...;(-;(All/0;(Terry Smith/1;(Sally Smith/2;(Tim Smith/3" into theviewlist
--shedule menu
if offset=0 then
put "(Look-up Fees.../F;(-;Standard" into theschedlist
else
put "Look-up Fees.../F;(-;Standard" into theschedlist
end if
--transaction menu
put "Cash Payment/H;Check Payment/K;Credit Card Payment/D;Insurance Payment/I;User Defined Payments 1-4;(-;Adjustment[+];Adjustment[-];Uncollectible Write-Off;(-;Work Completed;(-;“Thank You” Sent" into thetranslist
-- print menu
put "Insurance Form;Insurance Tracer;(-;Statement;Treatment Plan;(-;Family Summary;Complete Family;All Transaction;(-;Mail Labels;Chart Labels;General Label;(-;Page Setup..." into theprintlist
end if
end updatemenus
on changeview which, cardname
global cardticks, showfield
put true into showfield
put the ticks into cardticks
hide card field "Prompter"
hide card field "Prompter" of card cardname
repeat with j=1 to 6
set hilite of bg button j to (which=j)
end repeat
go to card "BlankPat"
go to card cardname
end changeview
on ocfilter
if the optionkey is down then
set hilite of card button "Cancel" to true
wait 5 ticks
set hilite of card button "Cancel" to false
else
set hilite of card button "OK" to true
wait 5 ticks
set hilite of card button "OK" to false
end if
go back
end ocfilter
on makesel what,min,max,whichline
repeat with x=min to max
set hilite of card button x of card what to false
end repeat
if whichline>0 then
set hilite of card button whichline of card what to true
end if
end makesel
on popup what,min,max,whichline
hide card field "Prompter"
makesel what,min,max,whichline
visual effect zoom open
go to card what
end popup
on dotimecheck thecard, cardticks, delay
if the ticks - cardticks > delay and not the visible of card field "Prompter" or the optionkey is down then
lock screen
show card field "Prompter" of card thecard
unlock screen with visual dissolve
end if
end dotimecheck
-- part 1 (button)
-- low flags: 00
-- high flags: E003
-- rect: left=8 top=313 right=335 bottom=87
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Guarantor
----- HyperTalk script -----
on mouseUp
changeview 1,"Guarantor"
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=91 top=313 right=335 bottom=170
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Spouse
----- HyperTalk script -----
on mouseUp
changeview 2,"Spouse"
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=174 top=313 right=335 bottom=253
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Patient
----- HyperTalk script -----
on mouseUp
changeview 3,"Patient"
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=257 top=313 right=335 bottom=336
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Chart
----- HyperTalk script -----
on mouseUp
changeview 4,"Chart"
end mouseUp
-- part 22 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=340 top=313 right=335 bottom=419
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Eyes
----- HyperTalk script -----
on mouseUp
changeview 5,"Eyes"
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=423 top=313 right=335 bottom=502
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Ledger
----- HyperTalk script -----
on mouseUp
changeview 6,"Ledger"
end mouseUp
-- part 9 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=10 top=1 right=19 bottom=37
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: AppleMenu
----- HyperTalk script -----
on mouseDown
global thenumofdas, thedanames, theapplelist
if the optionkey is down then
pass mouseDown
end if
put "About OpticMac‚Ñ¢;" & theapplelist into thelocallist
put the left of card window into lefty
add (the left of me + 1) to lefty
put the top of card window into bott
add (the bottom of me + 1) to bott
set the hilite of me to true
get PopUpMenu( thelocallist, 0, bott, lefty )
set the hilite of me to false
put it into itemhit
if (itemhit > 1) and (itemhit < (thenumofdas+3)) then